﻿@model List<ZhongheCms.Models.GswTblHomeDatum>
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="row">
    <div class="col-xs-12 padding-0">
        <div class="widget-box">
            <div class=" widget-header widget-header-flat" style="padding-left: 0px">
                <a href="/HomeData/GenerationData/0?m=@ViewBag.m&f=@ViewBag.f&p=@ViewBag.p&fid=@ViewBag.fid"><span class="btn btn-small btn-info no-border">
                                                                                                                 <i class="fa fa-plus-circle bigger-130"></i>&nbsp;<span class="bigger-110">首页数据更新</span></span>
                </a>
                <div class="widget-toolbar">
                  
                </div>

            </div>
            <div class="widget-body">
                <div class="widget-main padding-2">

                    <table class="table table-striped table-bordered table-hover">
                        <tr>
                            
                            <th>最后更新日期
                            </th>
                            <th>最后更新时间
                            </th>
                            <th>操作人员
                            </th>
                            
                           
                            
                        </tr>
                        <tbody>
                            @foreach (var item in Model)
                            {
			 
                                <tr>
                                    
                                  


                                    <td>
                                        @item.LastDate.ToShortDateString()
                                    </td>
                                    <td>
                                        @item.LastTime
                                       
                                    </td>
                                    
                                    <td>
                                        @item.UserName
                                       
                                    </td>
                                    
                                    
                                </tr>
                                       
                            }
                        </tbody>
                    </table>

                </div>
            </div>
        </div>
    </div>
</div>
  @if (ViewBag.scode == "0")
                        {
                            
                            <div class="alert alert-danger">
                                <button type="button" class="close" data-dismiss="alert">
                                    <i class="icon-remove"></i>
                                </button>

                                <strong>
                                    <i class="icon-remove"></i>
                                    错误提示
                                </strong>

                                @Html.ValidationSummary(true)

                            </div>

                        }
@section js
{
     
   
    <script src="/assets/js/bootbox.min.js"></script>
    <script type="text/javascript">
        jQuery(function ($) {
            //$('.datepick').datepicker({ autoclose: true, format: "yyyy-mm-dd", language: "zh-CN" });
          
            bootbox.setDefaults({ locale: "zh_CN" });
            $(".confirm").on(ace.click_event, function (e) {
                e.preventDefault();
                var link = $(this).attr("href");
                bootbox.confirm("确认删除此记录吗?", function (result) {
                    if (result) {
                        document.location.href = link;
                    }
                });
            });

        });
    </script>

}
